package web.stu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 成绩审核记录表
 *
 * @TableName score_audit
 */
@TableName(value = "score_audit")
@Data
public class ScoreAudit implements Serializable {
    /**
     * 审核ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 成绩ID
     */
    @TableField(value = "score_id")
    private Integer scoreId;


    /**
     * 管理员ID
     */
    @TableField(value = "admin_id")
    private Integer adminId;

    /**
     * 原成绩
     */
    @TableField(value = "old_score")
    private BigDecimal oldScore;

    /**
     * 新成绩
     */
    @TableField(value = "new_score")
    private BigDecimal newScore;

    /**
     * 审核状态(0:拒绝,1:通过,2:标记)
     */
    @TableField(value = "audit_status")
    private Integer auditStatus;

    /**
     * 原因
     */
    @TableField(value = "reason")
    private String reason;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}